using System;
using Microsoft.Practices.SharePoint.Common.Logging;
using Microsoft.SharePoint.Administration;

namespace SPWarmUp.Library
{
    public static class LogService
    {

        public static void LogException(Exception ex, string category, string area)
        {
            var logger = WarmUpServiceLocator.GetType<ILogger>();
            logger.TraceToDeveloper(ex);
        }

        public static void LogInformation(string message, string category, string area)
        {
            var logger = WarmUpServiceLocator.GetType<ILogger>();
            logger.TraceToDeveloper(message, 99);
        }
    }
}